-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
adding a proper fractions algorithm #11224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding a proper fractions algorithm #11224
Conversation
Hi, @cclauss ! Would you please consider checking out and approving this pull request? Or perhaps you could share a list of other people with "write" permissions to this repository which I could contact? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that https://en.wikipedia.org/wiki/Function_(computer_programming) does not contain the word proper
and a quick search for proper function
returns a lot of unrelated links...
Please provide at least one URL in the docstring that defines proper function
.
Co-authored-by: Christian Clauss <[email protected]>
for more information, see https://pre-commit.ci
Just implemented all changes recommended to the algorithm, thank you for the review, @cclauss! In addition to that, added a link with the purpose of clarifying what the algorithm's name proper_fractions means and what the algorithm works with. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Thanks.
* adding a proper fractions algorithm * Implementing suggestions in maths/numerical_analysis/proper_fractions.py Co-authored-by: Christian Clauss <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Implementing suggestions to proper_fractions.py * Fixing ruff errors in proper_fractions.py * Apply suggestions from code review * ruff check --output-format=github . * Update maths/numerical_analysis/proper_fractions.py * Update proper_fractions.py --------- Co-authored-by: Christian Clauss <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Describe your change:
this algorithm returns a list of proper fractions, in the range between 0 and 1, which can be formed with the given denominator
Checklist: